<?php

/**
 * This is the model metadata class for table "member".
 */
class MemberMetadata extends CARMDC
{
	/**
	 * @return string the associated database table name
	 */
	public function tableName()
	{
		return 'member';
	}

	/**
	 * @return array validation rules for model attributes.
	 */
	public function rules()
	{
		// NOTE: you should only define rules for those attributes that
		// will receive user inputs.
		return array(
			array('uid', 'numerical', 'integerOnly'=>true),
			array('account_name, account_password, email, mobile', 'length', 'max'=>32),
			array('member_name', 'length', 'max'=>64),
			array('registed_time', 'safe'),
			// The following rule is used by search().
			// Please remove those attributes that should not be searched.
			array('id, uid, account_name, account_password, member_name, email, mobile, registed_time', 'safe', 'on'=>'search'),
		);
	}

	/**
	 * @return array relational rules.
	 */
	public function relations()
	{
		// NOTE: you may need to adjust the relation name and the related
		// class name for the relations automatically generated below.
		return array(
		);
	}

	/**
	 * @return array customized attribute labels (name=>label)
	 */
	public function attributeLabels()
	{
		return array(
			'id' => '用户id, 主键, 自增长',
			'uid' => 'Uid',
			'account_name' => '帐户名',
			'account_password' => '帐户密码',
			'member_name' => '用户名',
			'email' => '电子邮箱',
			'mobile' => '联系手机',
			'registed_time' => '注册时间',
		);
	}
}